 
// 引入创建路由模式 history模式
import Layout from '../components/layout/index.vue'
// 引入路由各页面配置
const routes = [
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login/index.vue'),
    meta: { layout: 'empty' } 
  },

  {
    path: '/',
    name: 'layout',
    redirect: '/home',
    component: Layout,
    children: [
      {
        path: '/home',
        component: () => import("../views/home/index.vue"),
        name: 'home'
      },
      {
        path: '/mine',
        component:()=>import("../views/mine/index.vue"),
        name: 'mine'
      },
      {
        path: '/pass',
        component:()=>import("../views/pass/pass.vue"),
        name: 'pass'
      },
      {
        path: '/todo',
        component:()=>import("../views/todo/todo.vue"),
        name: 'todo'
      },
      {
        path: '/voice',
        component:()=>import("../views/voice/voice.vue"),
        name: 'voice'
      }
    ]
  },
 
]
 
export default routes;